/*********************************************************************
*                                                                    *
*                SEGGER Microcontroller GmbH & Co. KG                *
*        Solutions for real time microcontroller applications        *
*                                                                    *
**********************************************************************
*                                                                    *
* C-file generated by:                                               *
*                                                                    *
*        GUI_Builder for emWin version 5.12                          *
*        Compiled Jun 29 2011, 15:28:47                              *
*        (c) 2011 Segger Microcontroller GmbH & Co. KG               *
*                                                                    *
**********************************************************************
*                                                                    *
*        Internet: www.segger.com  Support: support@segger.com       *
*                                                                    *
**********************************************************************
*/

// USER START (Optionally insert additional includes)
// USER END

#include "DIALOG.h"

/*********************************************************************
*
*       Defines
*
**********************************************************************
*/

#define ID_WINDOW_0     (GUI_ID_USER + 0x00)
#define ID_TEXT_0     (GUI_ID_USER + 0x01)
#define ID_BUTTON_0     (GUI_ID_USER + 0x02)
#define ID_BUTTON_1     (GUI_ID_USER + 0x03)
#define ID_TEXT_1     (GUI_ID_USER + 0x04)
#define ID_TEXT_2     (GUI_ID_USER + 0x05)
#define ID_EDIT_0     (GUI_ID_USER + 0x06)
#define ID_RADIO_0     (GUI_ID_USER + 0x09)
#define ID_BUTTON_2     (GUI_ID_USER + 0x0D)
#define ID_BUTTON_3     (GUI_ID_USER + 0x0E)
#define ID_BUTTON_4     (GUI_ID_USER + 0x0F)
#define ID_BUTTON_5     (GUI_ID_USER + 0x10)
#define ID_BUTTON_6     (GUI_ID_USER + 0x11)
#define ID_BUTTON_7     (GUI_ID_USER + 0x12)
#define ID_BUTTON_8     (GUI_ID_USER + 0x13)
#define ID_BUTTON_9     (GUI_ID_USER + 0x14)
#define ID_BUTTON_10    (GUI_ID_USER + 0x15)
#define ID_BUTTON_11    (GUI_ID_USER + 0x16)
#define ID_BUTTON_12    (GUI_ID_USER + 0x17)
#define ID_BUTTON_13    (GUI_ID_USER + 0x18)
#define ID_BUTTON_14    (GUI_ID_USER + 0x19)
#define ID_TEXT_3    (GUI_ID_USER + 0x1A)
#define ID_TEXT_4    (GUI_ID_USER + 0x1B)
#define ID_MULTIEDIT_0  (GUI_ID_USER + 0x1C)
#define ID_TEXT_5  (GUI_ID_USER + 0x1D)
#define ID_BUTTON_15  (GUI_ID_USER + 0x1E)
#define ID_BUTTON_16  (GUI_ID_USER + 0x1F)
#define ID_TEXT_6  (GUI_ID_USER + 0x20)
#define ID_BUTTON_17  (GUI_ID_USER + 0x21)
#define ID_BUTTON_18  (GUI_ID_USER + 0x22)
#define ID_TEXT_7  (GUI_ID_USER + 0x23)
#define ID_SLIDER_0  (GUI_ID_USER + 0x24)
#define ID_TEXT_8  (GUI_ID_USER + 0x25)
#define ID_TEXT_9  (GUI_ID_USER + 0x26)
#define ID_PROGBAR_0  (GUI_ID_USER + 0x27)
#define ID_TEXT_10  (GUI_ID_USER + 0x28)
#define ID_TEXT_11  (GUI_ID_USER + 0x29)
#define ID_BUTTON_19  (GUI_ID_USER + 0x2A)

// USER START (Optionally insert additional defines)
// USER END

/*********************************************************************
*
*       Static data
*
**********************************************************************
*/

// USER START (Optionally insert additional static data)
// USER END

/*********************************************************************
*
*       _aDialogCreate
*/
static const GUI_WIDGET_CREATE_INFO _aDialogCreate[] = {
  { WINDOW_CreateIndirect, "Window", ID_WINDOW_0, -1, -2, 320, 960, 0, 0, 0 },
  { TEXT_CreateIndirect, "Text", ID_TEXT_0, 0, 15, 320, 15, 0, 100, 0 },
  { BUTTON_CreateIndirect, "select_radio_station", ID_BUTTON_0, 20, 70, 280, 40, 0, 0, 0 },
  { BUTTON_CreateIndirect, "show_config", ID_BUTTON_1, 20, 120, 280, 40, 0, 0, 0 },
  { TEXT_CreateIndirect, "Text", ID_TEXT_1, 0, 225, 320, 15, 0, 100, 0 },
  { TEXT_CreateIndirect, "Text", ID_TEXT_2, 0, 250, 320, 20, 0, 100, 0 },
  { EDIT_CreateIndirect, "Edit", ID_EDIT_0, 177, 290, 95, 20, 0, 100, 0 },
  { RADIO_CreateIndirect, "sel_static_ip_dhcp", ID_RADIO_0, 30, 292, 80, 38, 0, 5122, 0 },
  { BUTTON_CreateIndirect, "btn1", ID_BUTTON_2, 175, 320, 25, 25, 0, 0, 0 },
  { BUTTON_CreateIndirect, "btn2", ID_BUTTON_3, 210, 320, 25, 25, 0, 0, 0 },
  { BUTTON_CreateIndirect, "btnDOT", ID_BUTTON_4, 245, 410, 25, 25, 0, 0, 0 },
  { BUTTON_CreateIndirect, "btn9", ID_BUTTON_5, 210, 410, 25, 25, 0, 0, 0 },
  { BUTTON_CreateIndirect, "btn4", ID_BUTTON_6, 175, 350, 25, 25, 0, 0, 0 },
  { BUTTON_CreateIndirect, "btn3", ID_BUTTON_7, 245, 320, 25, 25, 0, 0, 0 },
  { BUTTON_CreateIndirect, "btn7", ID_BUTTON_8, 175, 380, 25, 25, 0, 0, 0 },
  { BUTTON_CreateIndirect, "btn8", ID_BUTTON_9, 210, 380, 25, 25, 0, 0, 0 },
  { BUTTON_CreateIndirect, "btn5", ID_BUTTON_10, 210, 350, 25, 25, 0, 0, 0 },
  { BUTTON_CreateIndirect, "btn6", ID_BUTTON_11, 245, 350, 25, 25, 0, 0, 0 },
  { BUTTON_CreateIndirect, "btn9", ID_BUTTON_12, 245, 380, 25, 25, 0, 0, 0 },
  { BUTTON_CreateIndirect, "save_config", ID_BUTTON_13, 30, 385, 80, 20, 0, 0, 0 },
  { BUTTON_CreateIndirect, "leave_config", ID_BUTTON_14, 30, 410, 80, 20, 0, 0, 0 },
  { TEXT_CreateIndirect, "Text", ID_TEXT_3, 155, 295, 22, 15, 0, 100, 0 },
  { TEXT_CreateIndirect, "Text", ID_TEXT_4, 0, 490, 320, 20, 0, 100, 0 },
  { MULTIEDIT_CreateIndirect, "stationlist", ID_MULTIEDIT_0, 15, 540, 290, 60, 0, 0, 0 },
  { TEXT_CreateIndirect, "Text", ID_TEXT_5, 15, 524, 178, 15, 0, 100, 0 },
  { BUTTON_CreateIndirect, "btn_reload_station_list", ID_BUTTON_15, 15, 605, 80, 20, 0, 0, 0 },
  { BUTTON_CreateIndirect, "btn_play_selected_station", ID_BUTTON_16, 15, 640, 290, 30, 0, 0, 0 },
  { TEXT_CreateIndirect, "Text", ID_TEXT_6, 0, 745, 320, 20, 0, 100, 0 },
  { BUTTON_CreateIndirect, "btn_stop_playback", ID_BUTTON_17, 15, 925, 95, 20, 0, 0, 0 },
  { BUTTON_CreateIndirect, "btn_mute", ID_BUTTON_18, 270, 870, 39, 20, 0, 0, 0 },
  { TEXT_CreateIndirect, "Text", ID_TEXT_7, 180, 900, 40, 15, 0, 100, 0 },
  { SLIDER_CreateIndirect, "sldr_volume", ID_SLIDER_0, 229, 900, 80, 20, 0, 0, 0 },
  { TEXT_CreateIndirect, "lbl_station", ID_TEXT_8, 15, 800, 80, 15, 0, 100, 0 },
  { TEXT_CreateIndirect, "lbl_meta", ID_TEXT_9, 15, 820, 40, 15, 0, 100, 0 },
  { PROGBAR_CreateIndirect, "buffer_status_bar", ID_PROGBAR_0, 230, 930, 80, 15, 0, 0, 0 },
  { TEXT_CreateIndirect, "Text", ID_TEXT_10, 180, 930, 40, 20, 0, 100, 0 },
  { TEXT_CreateIndirect, "lbl_playtime", ID_TEXT_11, 1, 770, 320, 15, 0, 100, 0 },
  { BUTTON_CreateIndirect, "btnDLE", ID_BUTTON_19, 175, 410, 25, 25, 0, 0, 0 },
  // USER START (Optionally insert additional widgets)
  // USER END
};

/*********************************************************************
*
*       Static code
*
**********************************************************************
*/

// USER START (Optionally insert additional static code)
// USER END

/*********************************************************************
*
*       _cbDialog
*/
static void _cbDialog(WM_MESSAGE * pMsg) {
  WM_HWIN hItem;
  int Id, NCode;
  // USER START (Optionally insert additional variables)
  // USER END

  switch (pMsg->MsgId) {
  case WM_INIT_DIALOG:
    //
    // Initialization of 'Window'
    //
    hItem = pMsg->hWin;
    WINDOW_SetBkColor(hItem, 0x00646464);
    //
    // Initialization of 'Text'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_0);
    TEXT_SetTextAlign(hItem, GUI_TA_HCENTER | GUI_TA_VCENTER);
    TEXT_SetText(hItem, "ARM7 Webradio");
    TEXT_SetFont(hItem, GUI_FONT_20_1);
    //
    // Initialization of 'select_radio_station'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_0);
    BUTTON_SetText(hItem, "Select Radio Station");
    //
    // Initialization of 'show_config'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_1);
    BUTTON_SetText(hItem, "Show Configuration");
    //
    // Initialization of 'Text'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_1);
    TEXT_SetTextAlign(hItem, GUI_TA_HCENTER | GUI_TA_VCENTER);
    TEXT_SetText(hItem, "Version 1.0");
    //
    // Initialization of 'Text'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_2);
    TEXT_SetTextColor(hItem, 0x00000000);
    TEXT_SetTextAlign(hItem, GUI_TA_HCENTER | GUI_TA_VCENTER);
    TEXT_SetFont(hItem, GUI_FONT_20_1);
    TEXT_SetText(hItem, "Options");
    //
    // Initialization of 'Edit'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_EDIT_0);
    EDIT_SetText(hItem, "255.255.255.255");
    //
    // Initialization of 'sel_static_ip_dhcp'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_RADIO_0);
    RADIO_SetText(hItem, "Use DHCP", 0);
    RADIO_SetText(hItem, "Use Static IP", 1);
    //
    // Initialization of 'btn1'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_2);
    BUTTON_SetText(hItem, "1");
    //
    // Initialization of 'btn2'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_3);
    BUTTON_SetText(hItem, "2");
    //
    // Initialization of 'btnDOT'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_4);
    BUTTON_SetText(hItem, ".");
    //
    // Initialization of 'btn9'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_5);
    BUTTON_SetText(hItem, "0");
    //
    // Initialization of 'btn4'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_6);
    BUTTON_SetText(hItem, "4");
    //
    // Initialization of 'btn3'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_7);
    BUTTON_SetText(hItem, "3");
    //
    // Initialization of 'btn7'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_8);
    BUTTON_SetText(hItem, "7");
    //
    // Initialization of 'btn8'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_9);
    BUTTON_SetText(hItem, "8");
    //
    // Initialization of 'btn5'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_10);
    BUTTON_SetText(hItem, "5");
    //
    // Initialization of 'btn6'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_11);
    BUTTON_SetText(hItem, "6");
    //
    // Initialization of 'btn9'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_12);
    BUTTON_SetText(hItem, "9");
    //
    // Initialization of 'save_config'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_13);
    BUTTON_SetText(hItem, "OK");
    //
    // Initialization of 'leave_config'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_14);
    BUTTON_SetText(hItem, "Abort");
    //
    // Initialization of 'Text'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_3);
    TEXT_SetText(hItem, "IP:");
    //
    // Initialization of 'Text'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_4);
    TEXT_SetText(hItem, "Select Radio Station");
    TEXT_SetTextAlign(hItem, GUI_TA_HCENTER | GUI_TA_VCENTER);
    TEXT_SetFont(hItem, GUI_FONT_20_1);
    //
    // Initialization of 'stationlist'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_MULTIEDIT_0);
    MULTIEDIT_SetText(hItem, "Station 1");
    //
    // Initialization of 'Text'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_5);
    TEXT_SetText(hItem, "Stations found in Config-File:");
    //
    // Initialization of 'btn_reload_station_list'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_15);
    BUTTON_SetText(hItem, "Reload List");
    //
    // Initialization of 'btn_play_selected_station'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_16);
    BUTTON_SetText(hItem, "Play selected Station");
    //
    // Initialization of 'Text'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_6);
    TEXT_SetText(hItem, "Playing...");
    TEXT_SetTextAlign(hItem, GUI_TA_HCENTER | GUI_TA_VCENTER);
    TEXT_SetTextColor(hItem, 0x00000000);
    TEXT_SetFont(hItem, GUI_FONT_20_1);
    //
    // Initialization of 'btn_stop_playback'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_17);
    BUTTON_SetText(hItem, "Stop Playback");
    //
    // Initialization of 'btn_mute'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_18);
    BUTTON_SetText(hItem, "Mute");
    //
    // Initialization of 'Text'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_7);
    TEXT_SetText(hItem, "Volume:");
    //
    // Initialization of 'lbl_station'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_8);
    TEXT_SetText(hItem, "Station:");
    //
    // Initialization of 'lbl_meta'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_9);
    TEXT_SetText(hItem, "Meta:");
    //
    // Initialization of 'Text'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_10);
    TEXT_SetText(hItem, "Buffer:");
    //
    // Initialization of 'lbl_playtime'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_11);
    TEXT_SetText(hItem, "00:00:00");
    TEXT_SetTextAlign(hItem, GUI_TA_HCENTER | GUI_TA_VCENTER);
    TEXT_SetFont(hItem, GUI_FONT_16B_1);
    //
    // Initialization of 'btnDLE'
    //
    hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_19);
    BUTTON_SetText(hItem, "<");
    // USER START (Optionally insert additional code for further widget initialization)
    // USER END
    break;
  case WM_NOTIFY_PARENT:
    Id    = WM_GetId(pMsg->hWinSrc);
    NCode = pMsg->Data.v;
    switch(Id) {
    case ID_BUTTON_0: // Notifications sent by 'select_radio_station'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
			
				//Back to Station Selection
				GUI_SetOrg(0,480);
			
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_1: // Notifications sent by 'show_config'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
			
			  //Back to Config Menu
				GUI_SetOrg(0,240);
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_EDIT_0: // Notifications sent by 'Edit'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_VALUE_CHANGED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_RADIO_0: // Notifications sent by 'sel_static_ip_dhcp'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_VALUE_CHANGED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_2: // Notifications sent by 'btn1'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_3: // Notifications sent by 'btn2'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_4: // Notifications sent by 'btnDOT'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_5: // Notifications sent by 'btn9'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_6: // Notifications sent by 'btn4'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_7: // Notifications sent by 'btn3'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_8: // Notifications sent by 'btn7'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_9: // Notifications sent by 'btn8'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_10: // Notifications sent by 'btn5'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_11: // Notifications sent by 'btn6'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_12: // Notifications sent by 'btn9'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_13: // Notifications sent by 'save_config'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
			
			  //Back to Main Menu
				GUI_SetOrg(0,0);
			
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_14: // Notifications sent by 'leave_config'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
				
			  //Back to Main Menu
				GUI_SetOrg(0,0);
			
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_MULTIEDIT_0: // Notifications sent by 'stationlist'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_VALUE_CHANGED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_15: // Notifications sent by 'btn_reload_station_list'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_16: // Notifications sent by 'btn_play_selected_station'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
			
				//Go to Player Screen
				GUI_SetOrg(0,720);
			
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_17: // Notifications sent by 'btn_stop_playback'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
			
				//Back to Main Menu
				GUI_SetOrg(0,0);
			
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_18: // Notifications sent by 'btn_mute'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_SLIDER_0: // Notifications sent by 'sldr_volume'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_VALUE_CHANGED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    case ID_BUTTON_19: // Notifications sent by 'btnDLE'
      switch(NCode) {
      case WM_NOTIFICATION_CLICKED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      case WM_NOTIFICATION_RELEASED:
        // USER START (Optionally insert code for reacting on notification message)
        // USER END
        break;
      // USER START (Optionally insert additional code for further notification handling)
      // USER END
      }
      break;
    // USER START (Optionally insert additional code for further Ids)
    // USER END
    }
    break;
  // USER START (Optionally insert additional message handling)
  // USER END
  default:
    WM_DefaultProc(pMsg);
    break;
  }
}

/*********************************************************************
*
*       Public code
*
**********************************************************************
*/
/*********************************************************************
*
*       CreateWindow
*/
WM_HWIN CreateWindowDLG(void) {
  WM_HWIN hWin;

  hWin = GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), &_cbDialog, WM_HBKWIN, 1, 3);
  return hWin;
}

// USER START (Optionally insert additional public code)
// USER END

/*************************** End of file ****************************/
